<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>root</title>
</head>
<body>
<table border="1" align="center">
    <tr>
        <th>账户id</th>
        <th>账户姓名</th>
        <th>账户电话</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    <tr th:each="user : ${session.users}">
        <td th:text="${user.id}"></td>
        <td th:text="${user.username}"></td>
        <td th:text="${user.phone}"></td>
        <td th:text="${user.status}"></td>
        <td>
            <form th:action="@{/frozen}">
                <input type="hidden" name="id" th:value="${user.id}">
                <input type="submit" value="冻结">
            </form>
            <form th:action="@{/thaw}">
                <input type="hidden" name="id" th:value="${user.id}">
                <input type="submit" value="解冻">
            </form>
        </td>
    </tr>
    <a th:href="@{/jumpLogin}">返回登录页面</a>
</table>
</body>
</html>